package com.hnas.eCard.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.hnas.eCard.dao.MerchantDetailDao;
import com.hnas.eCard.orm.MerchantDetail;
import com.hnas.eCard.service.MerchantDetailService;

@Component("merchantDetailService")
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
public class MerchantDetailServiceImpl implements MerchantDetailService{

	@Autowired
	private MerchantDetailDao merchantDetailDao;

	@Override
	public List<MerchantDetail> listAllByMerchantId(String merchantId) {
		return merchantDetailDao.listAllByMerchantId(merchantId);
	}
	

}
